home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
gauge
/
slidvb25
/
stesttic.frm
< prev
next >
Wrap
Text File
|
1995-12-10
|
35KB
|
1,110 lines
VERSION 2.00
Begin Form TicDemo
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Tic & Bar Properties"
ClientHeight = 6030
ClientLeft = 1365
ClientTop = 1410
ClientWidth = 5340
Height = 6435
Left = 1305
LinkTopic = "Form2"
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 6030
ScaleWidth = 5340
Top = 1065
Width = 5460
Begin Frame Frame6
BackColor = &H00C0C0C0&
Caption = "Color Properties"
Height = 1260
Left = 1755
TabIndex = 80
Top = 4695
Width = 3525
Begin Label Label4
BackColor = &H00000000&
Height = 210
Index = 0
Left = 1020
TabIndex = 5
Top = 480
Width = 240
End
Begin Label Label4
BackColor = &H000000FF&
Height = 210
Index = 1
Left = 1260
TabIndex = 6
Top = 480
Width = 240
End
Begin Label Label4
BackColor = &H0000FFFF&
Height = 210
Index = 2
Left = 1515
TabIndex = 7
Top = 480
Width = 240
End
Begin Label Label4
BackColor = &H0000FF00&
Height = 210
Index = 3
Left = 1770
TabIndex = 8
Top = 480
Width = 240
End
Begin Label Label4
BackColor = &H00FFFF00&
Height = 210
Index = 4
Left = 2010
TabIndex = 9
Top = 480
Width = 240
End
Begin Label Label4
BackColor = &H00FF0000&
Height = 210
Index = 5
Left = 2265
TabIndex = 10
Top = 480
Width = 240
End
Begin Label Label4
BackColor = &H00FF00FF&
Height = 210
Index = 6
Left = 2505
TabIndex = 11
Top = 480
Width = 240
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "OnColor:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 7
Left = 360
TabIndex = 13
Top = 495
Width = 630
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "BackColor:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 9
Left = 210
TabIndex = 21
Top = 915
Width = 780
End
Begin Label Label6
BackColor = &H00FF00FF&
Height = 210
Index = 6
Left = 2505
TabIndex = 22
Top = 900
Width = 240
End
Begin Label Label6
BackColor = &H00FF0000&
Height = 210
Index = 5
Left = 2265
TabIndex = 23
Top = 900
Width = 240
End
Begin Label Label6
BackColor = &H00FFFF00&
Height = 210
Index = 4
Left = 2010
TabIndex = 24
Top = 900
Width = 240
End
Begin Label Label6
BackColor = &H0000FF00&
Height = 210
Index = 3
Left = 1770
TabIndex = 25
Top = 900
Width = 240
End
Begin Label Label6
BackColor = &H0000FFFF&
Height = 210
Index = 2
Left = 1515
TabIndex = 26
Top = 900
Width = 240
End
Begin Label Label6
BackColor = &H000000FF&
Height = 210
Index = 1
Left = 1260
TabIndex = 27
Top = 900
Width = 240
End
Begin Label Label6
BackColor = &H00000000&
Height = 210
Index = 0
Left = 1020
TabIndex = 28
Top = 900
Width = 240
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "TicColor:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 6
Left = 345
TabIndex = 29
Top = 285
Width = 630
End
Begin Label Label3
BackColor = &H00FF00FF&
Height = 210
Index = 6
Left = 2505
TabIndex = 30
Top = 285
Width = 240
End
Begin Label Label3
BackColor = &H00FF0000&
Height = 210
Index = 5
Left = 2265
TabIndex = 31
Top = 270
Width = 240
End
Begin Label Label3
BackColor = &H00FFFF00&
Height = 210
Index = 4
Left = 2010
TabIndex = 32
Top = 270
Width = 240
End
Begin Label Label3
BackColor = &H0000FF00&
Height = 210
Index = 3
Left = 1755
TabIndex = 33
Top = 270
Width = 240
End
Begin Label Label3
BackColor = &H0000FFFF&
Height = 210
Index = 2
Left = 1515
TabIndex = 34
Top = 270
Width = 240
End
Begin Label Label3
BackColor = &H000000FF&
Height = 210
Index = 1
Left = 1260
TabIndex = 35
Top = 270
Width = 240
End
Begin Label Label3
BackColor = &H00000000&
Height = 210
Index = 0
Left = 1020
TabIndex = 36
Top = 270
Width = 240
End
Begin Label Label5
BackColor = &H00000000&
Height = 210
Index = 0
Left = 1020
TabIndex = 37
Top = 690
Width = 240
End
Begin Label Label5
BackColor = &H000000FF&
Height = 210
Index = 1
Left = 1260
TabIndex = 38
Top = 690
Width = 240
End
Begin Label Label5
BackColor = &H0000FFFF&
Height = 210
Index = 2
Left = 1515
TabIndex = 39
Top = 690
Width = 240
End
Begin Label Label5
BackColor = &H0000FF00&
Height = 210
Index = 3
Left = 1755
TabIndex = 40
Top = 690
Width = 240
End
Begin Label Label5
BackColor = &H00FFFF00&
Height = 210
Index = 4
Left = 2010
TabIndex = 41
Top = 690
Width = 240
End
Begin Label Label5
BackColor = &H00FF0000&
Height = 210
Index = 5
Left = 2265
TabIndex = 42
Top = 690
Width = 240
End
Begin Label Label5
BackColor = &H00FF00FF&
Height = 210
Index = 6
Left = 2505
TabIndex = 43
Top = 690
Width = 240
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "OffColor:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 8
Left = 330
TabIndex = 44
Top = 690
Width = 660
End
Begin Label Label3
BackColor = &H00808080&
Height = 210
Index = 7
Left = 2745
TabIndex = 45
Top = 270
Width = 240
End
Begin Label Label6
BackColor = &H00808080&
Height = 210
Index = 7
Left = 2745
TabIndex = 46
Top = 900
Width = 240
End
Begin Label Label4
BackColor = &H00808080&
Height = 210
Index = 7
Left = 2745
TabIndex = 47
Top = 480
Width = 240
End
Begin Label Label5
BackColor = &H00808080&
Height = 210
Index = 7
Left = 2745
TabIndex = 48
Top = 690
Width = 240
End
Begin Label Label3
BackColor = &H00FFFFFF&
Height = 210
Index = 8
Left = 2985
TabIndex = 49
Top = 270
Width = 240
End
Begin Label Label6
BackColor = &H00FFFFFF&
Height = 210
Index = 8
Left = 2985
TabIndex = 50
Top = 900
Width = 240
End
Begin Label Label4
BackColor = &H00FFFFFF&
Height = 210
Index = 8
Left = 2985
TabIndex = 51
Top = 480
Width = 240
End
Begin Label Label5
BackColor = &H00FFFFFF&
Height = 210
Index = 8
Left = 2985
TabIndex = 52
Top = 690
Width = 240
End
End
Begin Frame Frame5
BackColor = &H00C0C0C0&
Caption = "Value Properties"
Height = 1740
Left = 1755
TabIndex = 0
Top = 2940
Width = 3525
Begin HScrollBar HScroll1
Height = 240
Index = 10
LargeChange = 100
Left = 870
Max = 10000
Min = -10000
TabIndex = 1
Top = 1350
Value = 100
Width = 2000
End
Begin HScrollBar HScroll1
Height = 240
Index = 9
LargeChange = 100
Left = 870
Max = 10000
Min = -10000
TabIndex = 2
Top = 1110
Value = 10
Width = 2000
End
Begin HScrollBar HScroll1
Height = 240
Index = 8
LargeChange = 100
Left = 870
Max = 10000
SmallChange = 10
TabIndex = 3
Top = 750
Value = 10
Width = 2000
End
Begin HScrollBar HScroll1
Height = 240
Index = 7
Left = 870
Max = 10000
Min = -10000
TabIndex = 4
Top = 510
Value = 100
Width = 2000
End
Begin HScrollBar HScroll1
Height = 240
Index = 6
Left = 870
Max = 10000
Min = -10000
TabIndex = 12
Top = 270
Width = 2000
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "0.0"
Height = 195
Index = 10
Left = 2910
TabIndex = 14
Top = 1380
Width = 285
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "0.0"
Height = 195
Index = 9
Left = 2910
TabIndex = 15
Top = 1140
Width = 285
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Min:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 10
Left = 525
TabIndex = 16
Top = 1125
Width = 285
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Max:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 11
Left = 480
TabIndex = 17
Top = 1365
Width = 345
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "0.0"
Height = 195
Index = 8
Left = 2910
TabIndex = 18
Top = 795
Width = 285
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "0.0"
Height = 195
Index = 7
Left = 2910
TabIndex = 19
Top = 555
Width = 285
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "0.0"
Height = 195
Index = 6
Left = 2910
TabIndex = 20
Top = 315
Width = 285
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "TicStart:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 12
Left = 225
TabIndex = 53
Top = 285
Width = 600
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "TicStop:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 13
Left = 240
TabIndex = 56
Top = 525
Width = 585
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "TicDelta:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 14
Left = 210
TabIndex = 57
Top = 765
Width = 615
End
End
Begin Frame Frame4
BackColor = &H00C0C0C0&
Caption = "Tic Inner/Outer Properties"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 885
Left = 1755
TabIndex = 74
Top = 2040
Width = 3525
Begin HScrollBar HScroll1
Height = 240
Index = 0
Left = 855
Max = 100
TabIndex = 76
Top = 285
Width = 2000
End
Begin HScrollBar HScroll1
Height = 240
Index = 1
Left = 855
Max = 100
TabIndex = 75
Top = 510
Width = 2000
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "0.0"
Height = 195
Index = 1
Left = 2910
TabIndex = 58
Top = 555
Width = 285
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "0.0"
Height = 195
Index = 0
Left = 2910
TabIndex = 79
Top = 315
Width = 285
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "TicInner:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 0
Left = 210
TabIndex = 78
Top = 270
Width = 615
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "TicOuter:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 1
Left = 180
TabIndex = 77
Top = 525
Width = 660
End
End
Begin Frame Frame3
BackColor = &H00C0C0C0&
Caption = "Tic Label Properties"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 870
Left = 1755
TabIndex = 69
Top = 1155
Width = 3525
Begin HScrollBar HScroll1
Height = 240
Index = 2
Left = 1365
Max = 100
TabIndex = 71
Top = 480
Width = 1635
End
Begin CheckBox Check1
BackColor = &H00C0C0C0&
Caption = "TicLabelOn"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Left = 165
TabIndex = 70
Top = 255
Value = 1 'Checked
Width = 1425
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "0.0"
Height = 195
Index = 2
Left = 3060
TabIndex = 73
Top = 495
Width = 285
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "TicLabelPosition:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 2
Left = 150
TabIndex = 72
Top = 480
Width = 1200
End
End
Begin Frame Frame2
BackColor = &H00C0C0C0&
Caption = "Bar Properties"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1125
Left = 1755
TabIndex = 59
Top = 0
Width = 3525
Begin HScrollBar HScroll1
Height = 240
Index = 3
Left = 1020
Max = 100
TabIndex = 62
Top = 270
Width = 2000
End
Begin HScrollBar HScroll1
Height = 240
Index = 4
Left = 1005
Max = 100
TabIndex = 61
Top = 510
Width = 2000
End
Begin HScrollBar HScroll1
Height = 240
Index = 5
Left = 1005
Max = 50
TabIndex = 60
Top = 750
Width = 2000
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "0.0"
Height = 195
Index = 5
Left = 3030
TabIndex = 68
Top = 795
Width = 285
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "0.0"
Height = 195
Index = 4
Left = 3030
TabIndex = 67
Top = 570
Width = 285
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "0.0"
Height = 195
Index = 3
Left = 3030
TabIndex = 66
Top = 330
Width = 285
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "BarInner:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 3
Left = 315
TabIndex = 65
Top = 315
Width = 660
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "BarOuter:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 4
Left = 255
TabIndex = 64
Top = 555
Width = 705
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "BarBorder:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 5
Left = 165
TabIndex = 63
Top = 780
Width = 795
End
End
Begin SLIDER Slider1
AutoRedraw = -1 'True
AVersion = 2.501
BackColor = &H00808080&
BarBorder = 0.05
BarInner = 0.4
BarOuter = 0.575
BevelInner = 1 ' 1 - Raised
BevelOuter = 2 ' 2 - Inset
BevelWidth = 2
BorderWidth = 2
CaptionID = 0
Captions = 0
Digital = 0 'False
DigitalColor = &H00000000&
DigitalDecimals = 0
DigitalFontID = 0
DigitalX = 0
DigitalY = 0
Direction = 1 ' 1 - Backward
FontID = 0
Height = 5640
KnobColor = &H00000000&
KnobOffset = 0
KnobStyle = 0 ' 0 - None
KnobXScale = 0
KnobYScale = 0
Left = 90
Max = 100
Min = 0
MouseControl = -1 'True
OffColor = &H000000FF&
OnColor = &H0000FF00&
Orientation = 1 ' 1 - Vertical
Shape = ""
ShapeStyle = 0 ' 0 - Rectangle
Snap = 0 ' 0 - None
SnapIncrement = 0
TabIndex = 55
TicID = 0
Tics = 2
Top = 15
Value = 50
Width = 1545
ZLoad = STESTTIC.FRX:0000
End
Begin CheckBox Check2
BackColor = &H00C0C0C0&
Caption = "MouseControl"
Height = 195
Left = 135
TabIndex = 54
Top = 5715
Value = 1 'Checked
Width = 1530
End
End
Sub Check1_Click ()
slider1.TicLabelOn = Check1
End Sub
Sub Check2_Click ()
slider1.MouseControl = Check2
End Sub
Sub Form_Load ()
hscroll1(3) = slider1.BarInner * 100
hscroll1(4) = slider1.BarOuter * 100
hscroll1(5) = slider1.BarBorder * 100
hscroll1(2) = slider1.TicLabelPosition * 100
hscroll1(0) = slider1.TicInner * 100
hscroll1(1) = slider1.TicOuter * 100
hscroll1(6) = slider1.TicStart * 100
hscroll1(7) = slider1.TicStop * 100
hscroll1(8) = slider1.TicDelta * 100
hscroll1(9) = slider1.Min * 100
hscroll1(10) = slider1.Max * 100
End Sub
Sub HScroll1_Change (index As Integer)
Dim v As Single
v = hscroll1(index)
v = v / 100
Select Case index
Case 0
slider1.TicInner = v
Case 1
slider1.TicOuter = v
Case 2
slider1.TicLabelPosition = v
Case 3
slider1.BarInner = v
Case 4
slider1.BarOuter = v
Case 5
slider1.BarBorder = v
Case 6
slider1.TicStart = v
Case 7
slider1.TicStop = v
Case 8
slider1.TicDelta = v
Case 9
slider1.Min = v
Case 10
slider1.Max = v
End Select
label2(index) = v
End Sub
Sub HScroll1_Scroll (index As Integer)
Dim v As Single
v = hscroll1(index)
v = v / 100
Select Case index
Case 0
slider1.TicInner = v
Case 1
slider1.TicOuter = v
Case 2
slider1.TicLabelPosition = v
Case 3
slider1.BarInner = v
Case 4
slider1.BarOuter = v
Case 5
slider1.BarBorder = v
Case 6
slider1.TicStart = v
Case 7
slider1.TicStop = v
Case 8
slider1.TicDelta = v
Case 9
slider1.Min = v
Case 10
slider1.Max = v
End Select
label2(index) = v
End Sub
Sub Label3_Click (index As Integer)
slider1.TicColor = Label3(index).BackColor
End Sub
Sub Label4_Click (index As Integer)
slider1.OnColor = Label4(index).BackColor
End Sub
Sub Label5_Click (index As Integer)
slider1.OffColor = Label5(index).BackColor
End Sub
Sub Label6_Click (index As Integer)
slider1.BackColor = Label6(index).BackColor
End Sub